package cn.com.bluemoon.daps.sync.core.sync.log;

import org.springframework.context.ApplicationEvent;

/**
 * 新增日志事件
 *
 * @author Jarod.Kong
 * @date 2021/6/22 11:19
 */
public class SyncEnvLogEvent extends ApplicationEvent {
    private final EvenType type;

    public SyncEnvLogEvent(SyncEnvLog source, EvenType type) {
        super(source);
        this.type = type;
    }

    public EvenType getType() {
        return type;
    }

    /**
     * The object on which the Event initially occurred.
     *
     * @return The object on which the Event initially occurred.
     */
    @Override
    public SyncEnvLog getSource() {
        return (SyncEnvLog) super.getSource();
    }
}
